﻿

//查询城市区域
function cityarea(cityarea,cityid){
	
	 cityarea.append("<option value='0'>请选择</option>"); 
	  $.getJSON(http_whole_absolute_path+"/common/findcityarea/"+cityid, function(data){
	  		 $.each(data, function(i,item){
					cityarea.append("<option value='"+item.cityid+"'>"+item.cityname+"</option>");
		  });
	  		
	});
}


var Citys = new Array();
var i=0; 

Citys[i++] = new Array("10","北京","beijing","http://beijing.fantong.com");
Citys[i++] = new Array("31","上海市","shanghai"); 
Citys[i++] = new Array("20","广州 ","guangzhou");
Citys[i++] = new Array("12","天津市","tianjin");       
Citys[i++] = new Array("50","重庆市","chongqing");                
Citys[i++] = new Array("29","西安","xa");
Citys[i++] = new Array("536","威海","wh","http://wh.fantong.com");
Citys[i++] = new Array("335","秦皇岛","qhd");                
Citys[i++] = new Array("471","呼和浩特","hhht");                
Citys[i++] = new Array("472","包头","baotou");
Citys[i++] = new Array("24","沈阳","shenyang");
Citys[i++] = new Array("411","大连","dl","http://dl.fantong.com");
Citys[i++] = new Array("413","长春","changchun");
Citys[i++] = new Array("451","哈尔滨","hrb","http://hrb.fantong.com");
Citys[i++] = new Array("514","扬州","yangzhou");
Citys[i++] = new Array("510","无锡 ","wuxi");
Citys[i++] = new Array("512","苏州","suzhou");
Citys[i++] = new Array("571","杭州","hangzhou","http://hangzhou.fantong.com");
Citys[i++] = new Array("574","宁波","ningbo","http://ningbo.fantong.com");
Citys[i++] = new Array("551","合肥","hefei");
Citys[i++] = new Array("591","福州","fuzhou");
Citys[i++] = new Array("531","济南 ","jinan");
Citys[i++] = new Array("533","淄博","zibo","http://zibo.fantong.com");
Citys[i++] = new Array("535","烟台","yantai");
Citys[i++] = new Array("532","青岛","qingdao","http://qingdao.fantong.com");
Citys[i++] = new Array("27","武汉","wuhan","http://wuhan.fantong.com");

Citys[i++] = new Array("755","深圳","shenzhen");
Citys[i++] = new Array("773","桂林","guilin");
Citys[i++] = new Array("771","南宁","nanning");
Citys[i++] = new Array("371","郑州","zhengzhou","http://zhengzhou.fantong.com");
Citys[i++] = new Array("28","成都","chengdu");
Citys[i++] = new Array("851","贵阳 ","guiyang","http://guiyang.fantong.com");
Citys[i++] = new Array("871","昆明","kunming","http://kunming.fantong.com");
Citys[i++] = new Array("438","松原","songyuan");
Citys[i++] = new Array("351","太原","taiyuan");
Citys[i++] = new Array("373","新乡","xinxiang","http://xinxiang.fantong.com");
Citys[i++] = new Array("791","南昌","nanchang","http://nanchang.fantong.com");
Citys[i++] = new Array("750","江门","jiangmen","http://jiangmen.fantong.com");
Citys[i++] = new Array("57406","余姚","yuyao","http://yuyao.fantong.com");
Citys[i++] = new Array("377","南阳","nanyang","http://nanyang.fantong.com");
Citys[i++] = new Array("996","库尔勒","kuerle","http://kuerle.fantong.com");
Citys[i++] = new Array("751","韶关","shaoguan","http://shaoguan.fantong.com");
Citys[i++] = new Array("719","十堰","shiyan","http://shiyan.fantong.com");
Citys[i++] = new Array("310","邯郸","handan","http://handan.fantong.com");
Citys[i++] = new Array("752","惠州","huizhou","http://huizhou.fantong.com");
Citys[i++] = new Array("519","常州","changzhou","http://changzhou.fantong.com");
Citys[i++] = new Array("635","聊城","liaocheng","http://liaocheng.fantong.com");
Citys[i++] = new Array("355","长治","changzhi","http://changzhi.fantong.com");
Citys[i++] = new Array("351","太原","taiyuan","http://taiyuan.fantong.com");
Citys[i++] = new Array("579","金华","jinhua","http://jinhua.fantong.com");
Citys[i++] = new Array("538","泰安","taian","http://taian.fantong.com");
Citys[i++] = new Array("25","南京","nanjing","http://nanjing.fantong.com");
Citys[i++] = new Array("931","兰州","lanzhou","http://lanzhou.fantong.com");
Citys[i++] = new Array("552","蚌埠","bengbu","http://lanzhou.fantong.com");
Citys[i++] = new Array("951","银川","yinchuan","http://lanzhou.fantong.com");
Citys[i++] = new Array("991","乌鲁木齐","wlmq","http://lanzhou.fantong.com");
Citys[i++] = new Array("311","石家庄","shijiazhuang","http://shijiazhuang.fantong.com");
Citys[i++] = new Array("756","珠海","zhuhai","http://zhuhai.fantong.com");
Citys[i++] = new Array("631","潍坊","weifang","http://weifang.fantong.com");
Citys[i++] = new Array("710","襄樊","xiangfan","http://xiangfan.fantong.com");
Citys[i++] = new Array("357","临汾","linfen","http://linfen.fantong.com");
Citys[i++] = new Array("537","济宁","jining","http://jining.fantong.com");
Citys[i++] = new Array("577","温州","wenzhou","http://wenzhou.fantong.com");
Citys[i++] = new Array("11644","奥克兰","auckland","http://auckland.fantong.com");
Citys[i++] = new Array("990","克拉玛依","klmy","http://klmy.fantong.com");
Citys[i++] = new Array("379","洛阳","luoyang","http://luoyang.fantong.com");
Citys[i++] = new Array("376","信阳","xinyang","http://xinyang.fantong.com");
Citys[i++] = new Array("391","焦作","jiaozuo","http://jiaozuo.fantong.com");
Citys[i++] = new Array("757","佛山","foshan","http://foshan.fantong.com");
Citys[i++] = new Array("769","东莞","dongguan","http://dongguan.fantong.com");
Citys[i++] = new Array("553","芜湖","wuhu","http://wuhu.fantong.com");
Citys[i++] = new Array("760","中山","zhongshan","http://zhongshan.fantong.com");
Citys[i++] = new Array("730","岳阳","wuhu","http://yueyang.fantong.com");
Citys[i++] = new Array("459","大庆","daqing","http://daqing.fantong.com");
Citys[i++] = new Array("7171","宜昌","yichang","http://yichang.fantong.com");
Citys[i++] = new Array("816","绵阳","mianyang","http://mianyang.fantong.com");
Citys[i++] = new Array("554","淮南","huainan","http://huainan.fantong.com");
Citys[i++] = new Array("714","黄石","huangshi","http://huangshi.fantong.com");
Citys[i++] = new Array("512","昆山","kunshan","http://kunshan.fantong.com");


/**
* 初始化城市
*/
function putArray2city(sel,arr){
			
        while(sel.length>0){
                sel.remove(sel.length-1);
        }
  			for(var i=0;i<arr.length;i++){
                        sel.options[i] = new Option(arr[i][1],arr[i][0]);
        }
}
